#requires –version 2.0

$stopwatch = New-Object System.Diagnostics.StopWatch

function Show-Stopwatch {
	# Display stopwatch Elaped time
	$ts = $stopwatch.Elapsed
	$timer = [System.String]::Format("{0:00}:{1:00}:{2:00}", $ts.Hours, $ts.Minutes, $ts.Seconds)
	Write-Host "`rRUNTIME: " -ForegroundColor Green -NoNewline 
	Write-Host $timer -NoNewline
}

function Start-Stopwatch {
  	$stopwatch.Start()
}

function Stop-Stopwatch {
  	$stopwatch.Stop()
}

#region Notes

<# Description
	Stopwatch object to be displayed during processes to the console to 
	indicate progress.
#>

<# Author
	Levon Becker
	PowerShell.Guru@BonusBits.com
	http://wiki.bonusbits.com
#>

<#
	1.0.0 - 04/06/2011
		Created
	1.0.1 - 05/1/2012
		No changes, just mass version upgrade cause this one for building Windows
		Patching module.
		Besides changing the filename.
#>

#endregion Notes
